package com.hu.video.mapper;

import com.hu.video.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface SocialFollowMapper {
    // 获取粉丝ID列表
    List<Long> getFansIdList(@Param("userId") Long userId);
    // 获取粉丝详细信息列表
    List<TUser> getFansUserList(@Param("userId") Long userId);
    // 插入关注关系
    int insertFollow(@Param("followerId") Long followerId, @Param("followingId") Long followingId);
    // 取消关注
    int deleteFollow(@Param("followerId") Long followerId, @Param("followingId") Long followingId);
} 